import { IsNotEmpty, IsString } from 'class-validator';
import { Column } from 'typeorm';

export class LoginAuthDto {
  @Column()
  @IsNotEmpty({ message: 'name is required' })
  @IsString()
  name: string;

  @Column()
  @IsNotEmpty({ message: 'password is required' })
  @IsString()
  password: string;
}
